<?php
class UserLoginlog extends BaseModel
{
	protected $res;
	protected $expire;
	public function getSource()
    {
        return "f_user_loginlog";
    }
	protected function initialize()
    {
		parent::initialize();
	}

    public function loginlog_save($account){
        $data['ip'] = CommonController::get_real_ip();
        $data['way']=$account;
        $data['created_at'] = date('Y-m-d H:i:s',time());
        $this::save($data);
    }

}
